<?php
// +----------------------------------------------------------------------
// | tpadmin [a web common based ThinkPHP5]
// +----------------------------------------------------------------------
// | Copyright (c) 2016 tianpian
// +----------------------------------------------------------------------
// | Author: tianpian <tianpian0805@gmail.com>
// +----------------------------------------------------------------------

//------------------------
// 自定义配置信息
//-------------------------

return [
    //端口类型
    'client' => [
		1 => 'pc',
		2 => 'wx',
		3 => 'app',
		4 => 'h5',
        5 => 'sp',  //小程序
	],
	'extend_types' => [
				'text' => '文本',
				'switch' => '开关',
				'number' => '数字',
				'date' => '日期',
				'dateRange' => '日期区间',
				'checkbox' => '复选',
				'radio' => '单选',
				'image' => '图片',
				'select' => '选择',
				'textarea' => '文本域',
		    'password' => '密码',
		],
	//业务模块配置
	'business_type' => [
		1 => ['type'=>'product','is_unique'=>'0','events'=>'EVENT_TYPE_PRODUCT_DETAIL,EVENT_TYPE_PRODUCT_BUY,EVENT_TYPE_PRODUCT_COLLECT,EVENT_TYPE_PRODUCT_COMMENT,EVENT_TYPE_PRODUCT_HISTORY,EVENT_TYPE_PRODUCT_ADD_CART,EVENT_TYPE_PRODUCT_SHARE,EVENT_TYPE_PRODUCT_LIKE','db'=>'product','model_name'=>'产品管理'],
		2 => ['type'=>'article','is_unique'=>'0','events'=>'EVENT_TYPE_ARTICLE_DETAIL,EVENT_TYPE_ARTICLE_COLLECT,EVENT_TYPE_ARTICLE_COMMENT,EVENT_TYPE_ARTICLE_HISTORY,EVENT_TYPE_ARTICLE_DETAIL,EVENT_TYPE_ARTICLE_LIKE','db'=>'article_list','model_name'=>'文章管理'],
		3 => ['type'=>'link','is_unique'=>'0','events'=>'EVENT_TYPE_LINK_DETAIL,EVENT_TYPE_LINK_COLLECT,EVENT_TYPE_LINK_COMMENT,EVENT_TYPE_LINK_HISTORY,EVENT_TYPE_LINK_DETAIL,EVENT_TYPE_LINK_LIKE','db'=>'link','model_name'=>'链接管理'],
		4 => ['type'=>'member','is_unique'=>'1','events'=>'','tag_config'=>'member','db'=>'member','model_name'=>'会员管理'],
		5 => ['type'=>'album','is_unique'=>'0','events'=>'EVENT_TYPE_ALBUM_DETAIL,EVENT_TYPE_ALBUM_COLLECT,EVENT_TYPE_ALBUM_COMMENT,EVENT_TYPE_ALBUM_HISTORY,EVENT_TYPE_ALBUM_DETAIL,EVENT_TYPE_ALBUM_LIKE','db'=>'album','model_name'=>'相册管理'],
		6 => ['type'=>'shop','is_unique'=>'1','events'=>'','db'=>'shop','model_name'=>'商城管理'],
		7 => ['type'=>'sms','is_unique'=>'1','events'=>'','db'=>'sms','model_name'=>'短信管理'],
		8 => ['type'=>'credit','is_unique'=>'1','events'=>'','origin_module'=>'4','tag_config'=>'credit_field,credit_login_field,credit_signin_field','db'=>'product','model_name'=>'积分管理'],
        9 => ['type'=>'form','is_unique'=>'0','events'=>'EVENT_TYPE_FROM_COMMENT,EVENT_TYPE_FROM_SHARE','db'=>'form','model_name'=>'留言板'],
        10 => ['type'=>'forum'],
        12 => ['type'=>'assemble'],
	],
    'site_type' => [
        '1' => ['name'=>'旺铺','business_type'=>[1,2],'business_code'=>['1'=>[10,20]]],
        '2' => ['name'=>'超级店','business_type'=>[1,2],'business_code'=>['1'=>[0,10,20,30]]],
        '3' => ['name'=>'云站(企业)','business_type'=>[2,9],'business_code'=>[]],
        '4' => ['name'=>'云站(商城)','business_type'=>[1,2,9],'business_code'=>['1'=>[0,10,20,30]]],
        '5' => ['name'=>'餐饮','business_type'=>[1,2],'business_code'=>['1'=>[0,10]]],
    ],
    // 业务编码
    'business_code' => [
        //产品业务
        1 => [
            0 => ['name'=>'普通产品','attr'=>['颜色','尺寸','尺码','规格','净含量','种类','系列','版本','重量','容量','套餐','口味','产地','有效期']],
            10 => ['name'=>'产品卡','attr'=>[]],
            20 => ['name'=>'服务','attr'=>[]],
            30 => ['name'=>'电子卡券','attr'=>[]]
        ],
    ],
	'business_tags' =>[
		///积分基本设置
		'credit_base'=> ['is_open_credit','is_shopping_interaction','is_shopping_interaction','credit_name','credit_consumer_name','credit_interaction_name','proportion','time_limit','credit_scale'],
		//消费积分设置
		'credit_consume'=>['is_shopping','return_goods'],
		//互动积分
		'credit_interact'=>['is_register','register_send','is_login','login_send','login_days','login_extra','is_signin','signin_send','signin_days','signin_extra','is_information','information_send','is_head_photo','head_photo_send','is_bind_mobile','bind_mobile_send','is_bind_email','bind_email_send','is_comment','comment_send','comment_times','comment_extra','is_collect','collect_send','collect_times','collect_extra','collect_limit','comment_del'],
		//积分规则
		'credit_rules' => ['login_days','login_extra','collect_times','collect_extra','signin_days','signin_extra','comment_times','comment_extra'],
		'growth_field'=>['fields_config'=>'is_credit,growth_credit_num,growth_credit_growth,is_release,release_send,is_praise,praise_send,is_sell_money,is_sell_num,is_buy_num,is_buy_money,is_register,register_send,is_login,login_send,is_signin,signin_send,is_information,information_send,is_head_photo,head_photo_send,is_bind_mobile,bind_mobile_send,is_bind_email,bind_email_send,is_comment,comment_send,is_collect,collect_send,collect_limit','name'=>'成长值配置'],
		'growth_release_rule'=>['fields_config'=>'growth_release_num,growth_release_extra','连续发布额外增加成长值'],
		'growth_praise_rule'=>['fields_config'=>'growth_praise_num,growth_praise_extra','连续被好评额外增加成长值'],
		'growth_buy_num_rule'=>['fields_config'=>'growth_buy_num,growth_buy_num_growth','购买满笔数增加成长值'],
		'growth_buy_money_rule'=>['fields_config'=>'growth_buy_money,growth_buy_money_growth','购买满金额数增加成长值'],
		'growth_sell_num_rule'=>['fields_config'=>'growth_sell_num,growth_sell_num_growth','卖出笔数增加成长值'],
		'growth_sell_money_rule'=>['fields_config'=>'growth_sell_money,growth_sell_money_growth','卖出满金额数增加成长值'],
		'growth_login_days_rule'=>['fields_config'=>'login_days,login_extra','连续登陆额外增加成长值'],
		'growth_signin_days_rule'=>['fields_config'=>'signin_days,signin_extra','连续签到额外增加成长值'],
		'growth_comment_times_rule'=>['fields_config'=>'comment_times,comment_extra','连续评论额外增加成长值'],
		'growth_collect_times_rule'=>['fields_config'=>'collect_times,collect_extra','连续评论额外增加成长值'],
		'growth_rule_field'=>[
				1=>'growth_release_rule',//发布
				2=>'growth_praise_rule',//被好评
				3=>'growth_buy_num_rule',//购买笔数
				4=>'growth_buy_money_rule',//购买金额
				5=>'growth_sell_num_rule',//卖出笔数
				6=>'growth_sell_money_rule',//卖出金额
				7=>'growth_login_days_rule',//登录
				8=>'growth_signin_days_rule',//签到
				9=>'growth_comment_times_rule',//评论
				10=>'growth_collect_times_rule',//收藏
		],
		'member'=>['fields_config'=>'is_open_register,register_check_way,check_tips,reg_captcha_type,is_open_login,login_check_way,login_captcha_type,is_open_pay_password,retrieve_password_way,email_code_valid,mobile_code_valid','name'=>'会员配置']
	],
	//业务模块字段配置汇总
	'business_fields_config' => [
		//<<<common
        'sms_code' => [
            'name'=>'短信验证码',
            'type'=>'number',
            'vals'=>'',
            'relation_business'=>'7',
            'default_val'=>''
        ],
        'mobile_code_valid' => [
            'name'=>'短信验证码有效分钟',
            'type'=>'number',
            'vals'=>'',
            'relation_business'=>'4,7',
            'default_val'=>10,
            'unit'=>'分',
            'order'=>98
        ],
        'email_code_valid' => [
            'name'=>'邮件验证码有效分钟',
            'type'=>'number',
            'vals'=>'',
            'relation_business'=>'4',
            'default_val'=>10,
            'unit'=>'分',
            'order'=>99
        ],
		//>>>
		//<<<会员配置
		//--注册配置
		'is_open_register' => [
			'name'=>'开放注册',
			'type'=>'switch',
			'vals'=>['关闭','开启'],
			'relation_business'=>'4',
			'default_val'=>1,
			'order' =>1
		],
		'register_check_way' => [
			'name'=>'注册验证方式',
			'type'=>'checkbox',
			'vals'=>(object)['0'=>'无需验证','1'=>'管理员验证','2'=>'邮件验证码','3'=>'短信验证码','4'=>'图形验证码'],
			'relation_business'=>'4,7',
			'default_val'=>'0',
			'order' =>2
		],
		'check_tips' => [
			'name'=>'管理员验证提示语',
			'type'=>'text',
			'vals'=>'',
			'relation_business'=>'4',
			'default_val'=>'管理员审核中,需要1至7个工作日',
			'order' =>3
		],
		'reg_captcha_type' => [
			'name'=>'图形验证码方式',
			'type'=>'radio',
			'vals'=>['1'=>'静态图片','2'=>'滑动图片'],
			'relation_business'=>'4',
			'default_val'=>'1',
			'order' =>4
		],
		//--登录配置
		'is_open_login' => [
			'name'=>'开放登录',
			'type'=>'switch',
			'vals'=>['关闭','开启'],
			'relation_business'=>'4',
			'default_val'=>1,
			'link_fields'=>['login_check_way'],
			'order'=>5
		],
		'login_check_way' => [
			'name'=>'登录验证方式',
			'type'=>'radio',
			'vals'=>['1'=>'用户名/邮箱/手机号+密码','2'=>'用户名/邮箱/手机号+密码+图片验证码'],
			// 'vals'=>['1'=>'用户名+密码','2'=>'用户名+密码+图片验证码','3'=>'手机号+短信验证码','4'=>'邮箱+邮件验证码'],
			'relation_business'=>'4',
			'default_val'=>'1',
			'order'=>6
		],
		'login_captcha_type' => [
			'name'=>'图形验证码方式',
			'type'=>'radio',
			'vals'=>['1'=>'静态图片','2'=>'滑动图片'],
			'relation_business'=>'4',
			'default_val'=>'1',
			'order'=>7
		],
		// 'login_error_times_limit' => [
		// 	'name'=>'允许登录错误次数',
		// 	'type'=>'number',
		// 	'vals'=>'',
		// 	'relation_business'=>'4',
		// 	'default_val'=>5
		// ],
		// 'login_limit_time' => [
		// 	'name'=>'禁止登录时间',
		// 	'type'=>'number',
		// 	'vals'=>'',
		// 	'relation_business'=>'4',
		// 	'default_val'=>10
		// ],
		//--其他安全设置
		'is_open_pay_password' => [
            'name'=>'是否开启支付密码',
            'type'=>'switch',
            'vals'=>['关闭','开启'],
            'relation_business'=>'4',
            'default_val'=>1,
            'order'=>8
        ],
		'retrieve_password_way' => [
			'name'=>'登录密码找回方式',
			'type'=>'checkbox',
			'vals'=>['2'=>'手机','3'=>'邮件'],
			// 'vals'=>['1'=>'客服','2'=>'手机','3'=>'邮件'],
			'relation_business'=>'4',
			'default_val'=>'1',
			'order'=>9
		],
		//>>>会员配置
		//<!--积分配置行  ----verify_name验证场景名 ----remark用于说明
		'is_open_credit'=> [
				'name'=>'是否开启积分',
				'type'=>'switch',
				'vals'=>['0'=>'关闭','1'=>'开启'],
				'default_val'=>'1',
				'verify_name'=>'is_open',
				'remark'=>'配置会员等级',
		],
		'is_shopping_interaction'=> [
				'name'=>'是否开启消费积分与互动积分',
				'type'=>'switch',
				'vals'=>['0'=>'关闭','1'=>'开启'],
				'default_val'=>'1',
				'verify_name'=>'shopping_interaction',
				'remark'=>'区分消费积分与互动积分，互动积分将仅用于互动',
		],
		'credit_name'	=> [
				'name'=>'积分重命名',
				'type'=>'text',
				'relation_business'=>'8',
				'vals'=>'',
				'default_val'=>'积分',
				'verify_name'=>'credit_name',
				'remark'=>'',
		],
		'credit_consumer_name'	=> [
				'name'=>'消费积分重命名',
				'type'=>'text',
				'relation_business'=>'8',
				'vals'=>'',
				'default_val'=>'消费积分',
				'verify_name'=>'consumer_name',
				'remark'=>'购买商品、赠送所获得的积分',
		],
		'credit_interaction_name'	=> [
				'name'=>'互动积分重命名',
				'type'=>'text',
				'relation_business'=>'8',
				'vals'=>'',
				'default_val'=>'互动积分',
				'verify_name'=>'interaction_name',
				'remark'=> '登录、注册所获得的积分',
		],
		/*'proportion'=>[
				'name'=>'积分抵购最高比例',
				'type'=>'radio',
				'relation_business'=>'8',
				'vals'=>[0=>'无限制',1=>'有限制'],
				'default_val'=>'100',
				'verify_name'=>'proportion',
				'remark'=> '',
		],*/
		'proportion'=>[
				'name'=>'积分抵购最高比例',
				'type'=>'number',
				'relation_business'=>'8',
				'default_val'=>'100',
				'unit'=>'%',
				'verify_name'=>'proportion',
				'remark'=> '',
		],
		'time_limit'=>[
				'name'=>'积分清零时限',
				'type'=>'radio',
				'relation_business'=>'8',
				'vals'=>[0=>'无',1=>'一个月',2=>'三个月',3=>'半年',4=>'一年',5=>'两年'],
				'default_val'=>1,
				'verify_name'=>'1',
				'remark'=> '',
		],
		'credit_scale'=> [
				'name'=>'积分抵现比例',
				'action'=>'一元 = ',
				'type'=>'number',
				'relation_business'=>'8',
				'default_val'=>'100',
				'verify_name'=>'scale',
				'unit'=>'积分',
				'remark'=>'必须在0-100之间，0为不启用（购买商品时可用积分抵现）',
		],
		//消费送积分
		'is_shopping'=> [
				'name'=>'是否开启购物赠送积分',
				'type'=>'switch',
				'vals'=>[0=>'关闭',1=>'开启'],
				'relation_business'=>'8',
				'default_val'=>'1',
				'verify_name'=>'open_shopping',
				'remark'=> '赠送规则设置',
		],
		//积分降值设置
		'return_goods' => [
				'name'=>'退货或退款',
				'type'=>'switch',
				'vals'=>[0=>'关闭',1=>'开启'],
				'default_val'=>'1',
				'verify_name'=>'return_goods',
				'remark'=>'直接扣除当时所赠送或抵扣的积分',
		],
		//<!-----互动积分设置
		//注册送积分/成长值
		'is_register'=> [
				'name'=>'注册',
				'type'=>'switch',
				'vals'=>[0=>'关闭',1=>'开启'],
				'relation_business'=>'8',
				'default_val'=> '0',
				'verify_name'=>'is_register',
		],
		'register_send'=> [
				'name'=>'首次注册，',
				'action'=>'增加',
				'type'=>'number',
				'relation_business'=>'8',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'register_send',
				'remark' => ['如首次注册送10积分','如首次注册送10成长值'],
		],
		//登录送积分/成长值
		'is_login'=> [
				'name'=>'登录',
				'type'=>'switch',
				'vals'=>[0=>'关闭',1=>'开启'],
				'relation_business'=>'8',
				'default_val'=>'0',
				'verify_name'=>'is_login'
		],
		'login_send'=>[
				'name'=>'当天登录一次，',
				'type'=>'number',
				'action'=>'增加',
				'relation_business'=>'8',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'login_send',
				'remark'=>[
					'当天登录即一天，只限送一次。如规则设定：当天登录增加2个积分，连续3天登录则额外增加5个积分，即第一天实时增加2分，第二天实时增加2分，第三天实时增加2+5=7分，三天累积增加11分。天数为大于1的整数',
					'当天登陆即一天只限制一次，如: 一天登陆一次增加10个成长值，连续3天登陆则额外增加5个成长值，天数大于2'
				],
		],
		'login_days' => [
				'name'=>['连续','连续'],
				'type'=>'number',
				'default_val'=>'',
				'unit'=>['天，','天，'],
				'verify_name'=>'login_days',
				'remark'=> '',
		],//relation代表是同一组的
		'login_extra' => [
				'name'=>['额外积分','额外成长值'],
				'type'=>'number',
				'action'=>'额外增加',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'login_extra'
		],
		//签到送积分/成长值
		'is_signin'=> [
				'name'=>'签到',
				'type'=>'switch',
				'vals'=>[0=>'关闭',1=>'开启'],
				'relation_business'=>'8',
				'default_val'=>'0',
				'verify_name'=>'is_signin'
		],
		'signin_send'=>[
				'name'=>'当天签到，',
				'type'=>'number',
				'action'=>'增加',
				'relation_business'=>'8',
				'default_val'=>'',
				'verify_name'=>'signin_send',
				'unit'=>['积分','成长值'],
				'remark'=>[
					'当天签到即一天，只限送一次。如规则设定：当天签到增加2个积分，连续3天签到则额外增加5个积分，即第一天实时增加2分，第二天实时增加2分，第三天实时增加2+5=7分，三天累积增加11分。天数为大于1的整数',
					'如: 一天签到一次增加10个成长值，连续3天签到则额外增加5个成长值，天数大于2'
				]
		],
		'signin_days'  => [
				'name'=>['连续','连续'],
				'type'=>'number',
				'default_val'=>'',
				'unit'=>['天，','天，'],
				'verify_name'=>'signin_days',
				'remark'=>'天数大于2',
		],///同一个relation_id
		'signin_extra' => [
				'name'=>['额外增加','额外签到成长值'],
				'type'=>'number',
				'action'=>'额外增加',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'signin_extra'
		],
		'is_information' => [
				'name'=>'完善资料',
				'type'=>'switch',
				'vals'=>[0=>'开启',1=>'关闭'],
				'default_val'=>'0',
				'verify_name'=>'is_information'
		],
		'information_send' => [
				'name'=>'首次完善所有资料，',
				'type'=>'number',
				'action'=>'增加',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'information_send',
				'remark'=>['如: 完善所有资料增加10个积分','如: 完善所有资料增加10个成长值'],
		],
		'is_head_photo' => [
				'name'=>'上传头像',
				'type'=>'switch',
				'vals'=>[0=>'开启',1=>'关闭'],
				'default_val'=>'0',
				'verify_name'=>'is_head_photo'
		],
		'head_photo_send' => [
				'name'=>'首次上传完整的头像，',
				'type'=>'number',
				'action'=>'增加',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'head_photo_send',
				'remark'=> ['如: 上传完整头像增加10个积分','如: 上传完整头像增加10个成长值'],
		],
		'is_bind_mobile' => [
				'name'=>'手机绑定',
				'type'=>'switch',
				'vals'=>[0=>'开启',1=>'关闭'],
				'default_val'=>'0',
				'verify_name'=>'is_bind_mobile',
		],
		'bind_mobile_send' => [
				'name'=>'首次手机绑定完成，',
				'type'=>'number',
				'action'=>'增加',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'mobile_send',
				'remark'=>['如: 手机绑定完成增加10个积分','如: 手机绑定完成增加10个成长值']
		],
		'is_bind_email' => [
				'name'=>'邮箱绑定',
				'type'=>'switch',
				'vals'=>[0=>'开启',1=>'关闭'],
				'default_val'=>'0',
				'verify_name'=>'is_bind_email',
		],
		'bind_email_send' => [
				'name'=>'首次邮箱绑定完成，',
				'type'=>'number',
				'action'=>'增加',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'email_send',
				'remark'=>['如: 邮箱绑定完成增加10个积分','如: 邮箱绑定完成增加10个成长值'],
		],
		'is_comment' => [
				'name'=>'评论',
				'type'=>'switch',
				'vals'=>[0=>'开启',1=>'关闭'],
				'default_val'=>'0',
				'verify_name'=>'is_comment'
		],
		'comment_send' => [
				'name'=>'每次评论，',
				'type'=>'number',
				'action'=>'增加',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'comment_send',
				'remark'=>['如: 每次评论增加3积分，连续评论5次额外增加5个积分','如: 每次评论增加3成长值，连续评论5次额外增加5个成长值'],
		],
		'comment_times' => [
				'name'=>['累计','累计'],
				'type'=>'number',
				'default_val'=>'',
				'unit'=> ['次,','次,'],
				'verify_name'=>'is_comment'
		],
		'comment_extra' => [
				'name'=>['额外积分','额外成长值'],
				'type'=>'number',
				'action'=>'额外增加',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'comment_extra'
		],
		'is_collect' => [
				'name'=>'收藏',
				'type'=>'switch',
				'vals'=>[0=>'关闭',1=>'开启'],
				'default_val'=>'0',
				'verify_name'=>'is_collect'
		],
		'collect_send' => [
				'name'=>'每次收藏，',
				'type'=>'number',
				'action'=>'增加',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'collect_send'
		],
		'collect_limit' => [
				'name'=>'当天限制',
				'type'=>'number',
				'default_val'=>'',
				'unit'=> '次内',
				'verify_name'=>'collect_limit',
				'remark'=>['如:  当天每收藏3次增加10个积分','如:  当天每收藏3次增加10个成长值'],
		],
		'collect_times' => [
				'name'=>['累计','累计'],
				'type'=>'number',
				'default_val'=>'',
				'unit'=> ['次，','次，'],
				'verify_name'=>'collect_times'
		],
		'collect_extra' => [
				'name'=>['额外积分','额外成长值'],
				'type'=>'number',
				'action'=>'额外增加',
				'default_val'=>'',
				'unit'=>['积分','成长值'],
				'verify_name'=>'collect_extra'
		],
		///<!-----积分降值设置
		'comment_del' => [
				'name'=>'评论被删',
				'type'=>'switch',
				'vals'=>[0=>'关闭',1=>'开启'],
				'default_val'=>'0',
				'verify_name'=>'return_comment_del',
				'remark'=>['直接当时扣除所赠送的积分'],
		],
		///成长值（积分）
		'is_credit'=>[
				'name'=>'积分',
				'type'=>'switch',
				'vals'=>['0'=>'关闭','1'=>'开启'],
				'relation_business'=>'4',
				'default_val'=>'0',
				'verify_name'=>'is_credit',
		],
		'growth_credit_num'=>[
				'name'=>'每满足',
				'type'=>'number',
				'relation_business'=>'4',
				'default_val'=>'',
				'unit'=>'个',
				'verify_name'=>'growth_credit_num',
				'remark'=>['如:每满足100个积分增加5个成长值','如:每满足100个积分增加5个成长值']
		],
		'growth_credit_growth'=>[
				'action'=>'增加',
				'type'=>'number',
				'relation_business'=>'4',
				'unit'=>'个成长值',
				'default_val'=>'',
				'verify_name'=>'growth_credit_growth'
		],///>>>
		///成长值（发布）
		'is_release'=>[
				'name'=>'发布',
				'type'=>'switch',
				'vals'=>['0'=>'关闭','1'=>'开启'],
				'relation_business'=>'4',
				'default_val'=>'0',
				'verify_name'=>'is_release',
		],
		'release_send'=>[
				'name'=>'每次发布',
				'action'=>'增加',
				'type'=>'number',
				'relation_business'=>'4',
				'unit'=>'个成长值',
				'default_val'=>'',
				'verify_name'=>'release_send'
		],
		'growth_release_num'  => [
				'name'=>['连续发布','连续发布'],
				'type'=>'number',
				'default_val'=>'',
				'verify_name'=>'growth_release_num',
				'unit'=>['次','次'],
		],//relation代表是同一组的
		'growth_release_extra' => [
				'name'=>['额外增加','额外增加'],
				'type'=>'number',
				'default_val'=>'',
				'unit'=>['成长值','成长值'],
				'verify_name'=>'growth_release_extra',
				'remark'=>'如:每次发布，增加2个成长值；连续发布5次则额外增加5个成长值',
		],
		///>>>
		///成长值（被好评）
		'is_praise'=>[
				'name'=>'被好评',
				'type'=>'switch',
				'vals'=>['0'=>'关闭','1'=>'开启'],
				'relation_business'=>'4',
				'default_val'=>'0',
				'verify_name'=>'is_praise',
		],
		'praise_send'=>[
				'name'=>'每次被好评',
				'action'=>'增加',
				'type'=>'number',
				'relation_business'=>'4',
				'unit'=>['个成长值','个成长值'],
				'default_val'=>'',
				'verify_name'=>'praise_send'
		],
		'growth_praise_num'  => [
				'name'=>['连续被好评','连续被好评'],
				'type'=>'number',
				'default_val'=>'',
				'verify_name'=>'growth_praise_num',
				'unit'=>['次','次'],
		],//relation代表是同一组的
		'growth_praise_extra' => [
				'name'=>['额外增加','额外增加'],
				'type'=>'number',
				'default_val'=>'',
				'unit'=>['个成长值','个成长值'],
				'verify_name'=>'growth_praise_extra',
				'remark'=>'如:每次被好评，增加2个成长值，连续被好评3次则额外增加5个成长值',
		],
		///>>>
		///成长值（卖出金额）
		'is_sell_money'=>[
				'name'=>'卖出金额',
				'type'=>'switch',
				'vals'=>['0'=>'关闭','1'=>'开启'],
				'relation_business'=>'4',
				'default_val'=>'0',
				'verify_name'=>'is_sell_money',
		],
		'growth_sell_money'=>[
				'name'=>['卖满','卖满'],
				'type'=>'number',
				'relation_business'=>'4',
				'default_val'=>'',
				'unit'=>['元','元'],
				'verify_name'=>'growth_sell_money'
		],
		'growth_sell_money_growth'=>[
				'name'=>['增加','增加'],
				'type'=>'number',
				'relation_business'=>'4',
				'unit'=>['个成长值','个成长值'],
				'default_val'=>'',
				'verify_name'=>'growth_sell_money_growth',
				'remark'=>'如:卖出总金额满100元增加10个成长值',
		],
		///>>>
		///成长值（卖出笔数）
		'is_sell_num'=>[
				'name'=>'卖出笔数',
				'type'=>'switch',
				'vals'=>['0'=>'关闭','1'=>'开启'],
				'relation_business'=>'4',
				'default_val'=>'0',
				'verify_name'=>'is_sell_num',
		],
		'growth_sell_num'=>[
				'name'=>['卖满','卖满'],
				'type'=>'number',
				'relation_business'=>'4',
				'default_val'=>'',
				'unit'=>['笔','笔'],
				'verify_name'=>'growth_sell_money'
		],
		'growth_sell_num_growth'=>[
				'name'=>['增加','增加'],
				'type'=>'number',
				'relation_business'=>'4',
				'unit'=>['个成长值','个成长值'],
				'default_val'=>'',
				'verify_name'=>'growth_sell_money_growth',
				'remark'=>'如:卖出满3笔增加10个成长值'
		],
		///>>>
		///成长值（购买金额笔数）
		'is_buy_num'=>[
				'name'=>'购买笔数',
				'type'=>'switch',
				'vals'=>['0'=>'关闭','1'=>'开启'],
				'relation_business'=>'4',
				'default_val'=>'0',
				'verify_name'=>'is_growth_sell_money',
		],
		'growth_buy_num'=>[
				'name'=>['买满','买满'],
				'type'=>'number',
				'relation_business'=>'4',
				'default_val'=>'',
				'unit'=>['笔','笔'],
				'verify_name'=>'growth_sell_money'
		],
		'growth_buy_num_growth'=>[
				'name'=>['增加','增加'],
				'type'=>'number',
				'relation_business'=>'4',
				'unit'=>['个成长值','个成长值'],
				'default_val'=>'',
				'verify_name'=>'growth_sell_money_growth',
				'remark'=>'如:购买满3笔增加10个成长值',
		],
		///>>>
		///成长值（购买金额数）
		'is_buy_money'=>[
				'name'=>'购买金额',
				'type'=>'switch',
				'vals'=>['0'=>'关闭','1'=>'开启'],
				'relation_business'=>'4',
				'default_val'=>'0',
				'verify_name'=>'is_growth_sell_money',
		],
		'growth_buy_money'=>[
				'name'=>['买满','买满'],
				'type'=>'number',
				'relation_business'=>'4',
				'default_val'=>'',
				'unit'=>['元','元'],
				'verify_name'=>'growth_sell_money'
		],
		'growth_buy_money_growth'=>[
				'name'=>['增加','增加'],
				'type'=>'number',
				'relation_business'=>'4',
				'unit'=>['个成长值','个成长值'],
				'default_val'=>'',
				'verify_name'=>'growth_sell_money_growth',
				'remark'=>'如:购买总金额满100元增加10个成长值'
		],
		///>>>
	],

	//系统业务功能配置
	'business_config' => [
		'product_type' => ['id'=>'product_type','name'=>'产品类型','is_fixed'=>'1','is_require'=>'1'],
		'delivery_type' => ['id'=>'delivery_type','name'=>'发货方式','is_fixed'=>'1','is_require'=>'1'],
		'pay_type' => ['id'=>'pay_type','name'=>'交易方式','is_fixed'=>'1','is_require'=>'1'],
		'product_attr' => ['id'=>'product_attr','name'=>'产品规格','is_fixed'=>'0','is_require'=>'0']
	],
	//产品类型
	'product_type' => [
		'entity' => ['id'=>'entity','name'=>'实物','is_default'=>'1'],
		'invented' => ['id'=>'invented','name'=>'虚拟','is_default'=>'0']
	],
	//发货类型
	'delivery_type' => [
		'express' => ['id'=>'express','name'=>'快递','is_default'=>'1'],
		'offline_trade' => ['id'=>'offline_trade','name'=>'线下交易','is_default'=>'0']
	],
//	//支付类型
//	'pay_type' => [
//		'alipay' => ['id'=>'alipay','name'=>'支付宝','is_default'=>'1','is_config'=>'1'],
//		'balance' => ['id'=>'balance','name'=>'余额支付','is_default'=>'0','is_config'=>'0']
//	],
	//业务事件绑定的配置
	'event_list' => [
		'EVENT_TYPE_PRODUCT_BUY' => ['configs'=>'product_type'],
        'EVENT_TYPE_PRODUCT_COLLECT'=>['configs'=>''],
        'EVENT_TYPE_PRODUCT_COMMENT'=>['configs'=>''],
        'EVENT_TYPE_PRODUCT_SHARE'=>['configs'=>''],
        'EVENT_TYPE_PRODUCT_HISTORY'=>['configs'=>''],
        'EVENT_TYPE_PRODUCT_DETAIL'=>['configs'=>''],
        'EVENT_TYPE_PRODUCT_ADD_CART'=>['configs'=>''],
        'EVENT_TYPE_PRODUCT_LIKE'=>['configs'=>''],

        'EVENT_TYPE_ARTICLE_DETAIL'=>['configs'=>''],
        'EVENT_TYPE_ARTICLE_COLLECT'=>['configs'=>''],
        'EVENT_TYPE_ARTICLE_COMMENT'=>['configs'=>''],
        'EVENT_TYPE_ARTICLE_SHARE'=>['configs'=>''],
        'EVENT_TYPE_ARTICLE_HISTORY'=>['configs'=>''],
        'EVENT_TYPE_ARTICLE_LIKE'=>['configs'=>''],

        'EVENT_TYPE_LINK_DETAIL'=>['configs'=>''],
        'EVENT_TYPE_LINK_COLLECT'=>['configs'=>''],
        'EVENT_TYPE_LINK_COMMENT'=>['configs'=>''],
        'EVENT_TYPE_LINK_SHARE'=>['configs'=>''],
        'EVENT_TYPE_LINK_HISTORY'=>['configs'=>''],
        'EVENT_TYPE_LINK_LIKE'=>['configs'=>''],

        'EVENT_TYPE_ALBUM_DETAIL'=>['configs'=>''],
        'EVENT_TYPE_ALBUM_COLLECT'=>['configs'=>''],
        'EVENT_TYPE_ALBUM_COMMENT'=>['configs'=>''],
        'EVENT_TYPE_ALBUM_SHARE'=>['configs'=>''],
        'EVENT_TYPE_ALBUM_HISTORY'=>['configs'=>''],

        'EVENT_TYPE_FROM_COMMENT'=>['configs'=>''],
        'EVENT_TYPE_FROM_SHARE'=>['configs'=>''],

	],
	//支付方式
// 	'pay_way' => [
// 		'1' => '支付宝',
// 		'2' => '微信支付',
// 		'3' => 'App微信支付',
// 		//'4' => '账户余额',
// 		//'5' => '易极付',
// 		//'6' => '线下支付',
// 		//'7' => '免支付',
// 		//'8' => '银联支付',
// 		//'9' => '通联支付个人版',
// 		//'10'=> '通联支付企业版'
// 	],
	//目前支持的支付方式
	'payment_type' =>[
		1=>[
			'id'=>'1',
			'type'=>'alipay',
			'name'=>'支付宝'
		],
		2=>[
			'id'=>'2',
			'type'=>'wechat_pc',
			'name'=>'微信支付'
		],
		3=>[
			'id'=>'3',
			'type'=>'wechat_app',
			'name'=>'App微信支付'
		]
	],
	//运费计算方式
	'sum_way' => [
		'1' => '件数',
		'2' => '重量',
		'3' => '体积'
	],
	//运送方式
	'shipping_type' => [
		1 => [
			'name' => '快递',
			'tag' => 'express'
		],
		2 => [
			'name' => 'EMS',
			'tag' => 'ems'
		],
		3 => [
			'name' => '平邮',
			'tag' => 'post'
		],
		4 => [
			'name' => '自提',
			'tag' => 'post'
		]
	],

	// 会员积分类型
	'credit_type' =>[
		'consumer' => ['id'=>1,'name'=>'消费积分'],
		'grade'    => ['id'=>2,'name'=>'等级积分'],
		'sign'     => ['id'=>3,'name'=>'签到积分'],
		'activity' => ['id'=>4,'name'=>'活动积分'],
		'development' => ['id'=>5,'name'=>'发展积分'],
		'coupon' => ['id'=>6,'name'=>'礼券兑换积分'],
		'register' => ['id'=>7,'name'=>'注册积分'],
		'login' => ['id'=>8,'name'=>'登录积分'],
	],
    //订单状态
    'order_status' => [
        0 => '未付款',
        1 => '已付款',
        2 => '已发货',
        3 => '已完成',
        4 => '已取消',
        5 => '已关闭',
        6 => '售后中',
        7 => '待发货',//拼团小程序的
	],
    //消息类型
    'msg_type'=>[
        1=>'订单发货',
        2=>'订单签收',
        3=>'订单退款',
        4=>'活动',
    ],
    //售后状态
    'customer_status'=>[
        '1'=>'审核中',
        '2'=>'售后中',
        '3'=>'已拒绝',
        '4'=>'售后完成',
        '5'=>'已关闭',
    ],
    //消息订阅状态
    'prompt_type'=>[
        '1'=>'已付款',
        '2'=>'确认收货',
        '3'=>'取消订单',
        '4'=>'已评价',
        '5'=>'申请售后',
        '6'=>'取消售后',
        '7'=>'售后完成',
        '8'=>'修改信息',
        '9'=>'已发货',
        '10'=>'修改价格',
        '11'=>'退款',
        '12'=>'同意售后',
        '13'=>'拒绝售后',
        '14'=>'收到的评价',
        '15'=>'收到的回复',
        '16'=>'积分变动',
        '17'=>'等级变动',
        '18'=>'成长值变动',
        '19'=>'审核状态',
        '20'=>'数据被删',
		'21'=>'确认下单'
	],

	//前端消息查看URL地址
	'msg_detail_url' => [
		'order_detail' => 'order/detail?order_id=',
		'order_evaluation' => 'order/evaluation?order_id='
	],

    //会员字段格式
    'field_format' => [
    	'custom' => [
    		'name' => '任意',
    		'default_val' =>'',
    		'placeholder' => '格式不限',
    		'error_msg' => '格式错误',
    		'regex' => '/.?/',
			'is_visible' => 1,
			'type' => 'text',
    	],
    	'tel' => [
    		'name' => '电话号码',
    		'default_val' => '',
    		'placeholder' => '格式：020-88888888/0757-88888888',
    		'error_msg' => '电话号码格式错误',
    		'regex' => '/^0\d{2,3}-\d{7,8}$/',
			'is_visible' => 1,
			'type' => 'text',
    	],
    	'phone' => [
    		'name'=>'手机号码',
    		'default_val' =>'',
    		'placeholder'=>'格式：15812345678',
    		'error_msg'=>'手机号码格式错误',
    		'regex'=>'/^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/',
			'is_visible' => 1,
			'type' => 'text',
    	],
    	'email' => [
    		'name' => '电子邮箱',
    		'default_val' => '',
    		'placeholder' => '格式：88888888@qq.com',
    		'error_msg' => '电子邮箱格式错误',
    		'regex' => '/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/',
			'is_visible' => 1,
			'type' => 'text',
    	],
    	'a1_' => [
    		'name' => '字母数字下划线',
    		'default_val' => '',
    		'placeholder' => '格式：abc_123',
    		'error_msg' => '只允许输入由字母、数字、下划线',
    		'regex' => '/^\w+$/',
			'is_visible' => 1,
			'type' => 'text',
    	],
    	'num' => [
    		'name' => '数字',
    		'default_val' => '',
    		'placeholder' => '格式：123',
    		'error_msg' => '只允许输入数字',
    		'regex' => '/^[0-9]*$/',
			'is_visible' => 1,
			'type' => 'text',
    	],
    	'alpha' => [
    		'name' => '字母',
    		'default_val' => '',
    		'placeholder' => '格式：abc',
    		'error_msg' => '只允许输入字母',
    		'regex' => '/^[a-zA-Z]*$/',
			'is_visible' => 1,
			'type' => 'text',
    	],
		'radio_reg' => [
			'name' => '单选',
			'default_val' =>'',
			'placeholder' => '格式：0',
			'error_msg' => '只允许输入【0-9】',
			'regex' => '/^\d$/',
			'is_visible' => 0,
			'type' => 'radio',
		],
		'checkbox_reg' => [
			'name' => '多选',
			'default_val' =>'',
			'placeholder' => '格式：1,2,3',
			'error_msg' => '只允许以正整数开头或与英文逗号相隔',
			'regex' => '/^\d{0,11}(\d{0,11}|,?)*\d$/',
			'is_visible' => 0,
			'type' => 'checkbox',
		],
		'select_reg' => [
			'name' => '下拉框',
			'default_val' => '',
			'placeholder'  => '格式：1,2,3,4',
			'error_msg'  => '只允许以正整数开头或与英文逗号相隔',
			'regex'  => '/^\d{0,11}(\d{0,11}|,?)*\d$/',
			'is_visible' => 0,
			'type' => 'select',
		],
		'date_reg' => [
			'name' => '日期',
			'default_val' => '',
			'placeholder'  => '格式：2017-6-6|2017/6/6|2017_6_6',
			'error_msg'  => '只允许输入日期格式',
			'regex'  => '/((^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(10|12|0?[13578])([-\/\._])(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(11|0?[469])([-\/\._])(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(0?2)([-\/\._])(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([3579][26]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][13579][26])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][13579][26])([-\/\._])(0?2)([-\/\._])(29)$))/',
			'is_visible' => 0,
			'type' => 'date',
		],
		'img_reg' => [
			'name' => '图片',
			'default_val' => '',
			'placeholder'  => '格式：http://www.qiniu.com/web_182/img.jpg',
			'error_msg'  => '只允许输入url+图片后缀',
			//'regex'  => '/^http|https:\/\/([^"]+(?:jpg|gif|png|bmp|jpeg))$/',
			'regex'  => '/.?/',
			'is_visible' => 0,
			'type' => 'image',
		],
    ],
    'member_field_type' => [
        'text'      => '单行文本',
        'textarea'  => '多行文本',
        'select'    => '下拉列表',
        'radio'     => '单选按钮',
        'date'      => '下拉日历',
        'checkbox'  => '复选框',
        'image'     => '图片',
    ],
    //系统售后类型
    'cus_ser_types'=>[
        '1'=>'退款(未发货)',
        '2'=>'退款(已发货)',
        '3'=>'退货退款(已发货)',
        '4'=>'退款(已收货)',
        '5'=>'退货退款(已收货)',
        '6'=>'换货/返修(已收货)',
    ],
    //系统售后原因
    'cus_ser_reason'=>[
        '1'=>'7天无理由退换货',
        '2'=>'质量问题',
        '3'=>'商品与描述不符',
        '4'=>'少件/漏发',
        '5'=>'假冒品牌',
        '6'=>'包装/商品破损',
        '7'=>'未按约定时间发货',
        '8'=>'我不想买了',
        '9'=>'付款遇到问题',
        '10'=>'信息填写错误重新拍',
        '11'=>'拍错了',
        '12'=>'其他原因',
    ],
    //下单付款时限
    'deadline_type'=>[
        '0'=>'不限',
//         '15'=>'15分钟',
//         '30'=>'30分钟',
//         '60'=>'1小时',
//         '180'=>'3小时',
//         '360'=>'6小时',
//         '720'=>'12小时',
        '1440'=>'1天',
        '4320'=>'3天',
        '10080'=>'7天',
        '21600'=>'15天',
    ],
    //自动确认收货时限
    'autoconfirm_type'=>[
        '0'=>'不限',
        '3'=>'3天',
        '7'=>'7天',
        '14'=>'14天',
        '21'=>'21天',
        '30'=>'30天',
        '60'=>'60天',
        '90'=>'90天',
        '180'=>'180天',
    ],
    //取消订单理由
    'cancel_order'=>[
        1=>'我不想买了',
        2=>'信息填写错误，重新拍',
        3=>'卖家缺货',
        4=>'同城见面交易',
        5=>'付款遇到问题（如余额不足、不知怎样付款等）',
        6=>'拍错了',
        7=>'其他原因',
    ],
    //取消服务理由
    'cancel_book'=>[
        1=>'我不想要了',
        2=>'与商家达成一致，取消预约',
        3=>'商家拒绝提供这个服务',
        4=>'其他原因',
    ],
	//交易方式配置
		'trade_type'=> [
				'1' =>'在线支付',
				'2' =>'线下支付',
		],
	// 公众号授权给开发者的权限集列表
		'func_info'=>[
				1=>'消息管理权限',
				2=>'用户管理权限',
				3=>'帐号服务权限',
				4=>'网页服务权限',
				5=>'微信小店权限',
				6=>'微信多客服权限',
				7=>'群发与通知权限',
				8=>'微信卡券权限',
				9=>'微信扫一扫权限',
				10=>'微信连WIFI权限',
				11=>'素材管理权限',
				12=>'微信摇周边权限',
				13=>'微信门店权限',
				14=>'微信支付权限',
				15=>'自定义菜单权限',
		],

	//支付宝回调地址配置
	'alipay_return_url'=>[
		    1=>['notify_url'=>'/pay/pay_return/pro_ty_alipay_notify_url','return_url'=>'/pay/pay_return/pro_ty_alipay_return_url'],                  //1是产品订单模块
		    2=>['notify_url'=>'http://api.newyali.cn/pay/pay_return/sms_pay_notify','return_url'=>'/ecom/mallmgmt/smsset?title=%E7%9F%AD%E4%BF%A1%E8%AE%BE%E7%BD%AE'],                  //2是短信购买模块
		    3=>['notify_url'=>'','return_url'=>''],                  //3是会员充值模块
	],

    //微信回调地址配置
    'wechat_return_url'=>[
        1=>['notify_url'=>'http://api.newyali.cn/pay/pay_return/pro_wx_return'],                  //1是产品订单模块
        2=>['notify_url'=>'http://api.newyali.cn/pay/pay_return/sms_wx_return'],                  //2是短信购买模块
        3=>['notify_url'=>'/pay/pay/rechargeWxReturn'],                  //3是会员充值模块
        4=>['notify_url'=>'http://api.benfor.cn/pay/pay_return/group_wx_return'],                  //4是拼团订单模块
        5=>['notify_url'=>'http://api.benfor.cn/pay/pay_return/pay_wx_return'],                  //5是优惠买单订单模块
        6=>['notify_url'=>'http://api.benfor.cn/pay/pay_return/card_wx_return'],                  //6是会员卡支付模块
        7=>['notify_url'=>'http://api.benfor.cn/pay/pay_return/buycard_wx_return'],
        //7是商品卡购买支付模块
    ],

    //模块归属
    'model_type'=>[
        '0'=>['name'=>'独立模块','model'=>'Independent '],
        '1'=>['name'=>'产品系统','model'=>'Product'],
        '2'=>['name'=>'文章系统','model'=>'Article'],
        '3'=>['name'=>'链接系统','model'=>'Link'],
        '4'=>['name'=>'会员系统','model'=>'Member'],
        '5'=>['name'=>'相册系统','model'=>'Album'],
        '6'=>['name'=>'商城系统','model'=>'Shop'],
        '7'=>['name'=>'短信系统','model'=>'Sms'],
        '8'=>['name'=>'积分系统','model'=>'Credit'],
        '9'=>['name'=>'表单系统','model'=>'From'],
        '10'=>['name'=>'论坛系统','model'=>'Forum'],
        // 12 不要使用 留给 WMS
        //'2'=>['name'=>'新闻模块','model'=>'Article']
    ],

    //浏览器类型，0为其他浏览器
    'browser' => [
        '0'	=> '其他浏览器',
        '1' => '火狐浏览器',
        '2' => '傲游浏览器',
        '3' => 'IE浏览器',
        '4' => 'opera浏览器',
        '5' => 'Edge浏览器',
        '6' => 'Chrome浏览器',
        '7'	=> 'safari浏览器',
    ],

    //网站来源
    'source_type' => [
        '1' => '直接输入网址/书签',
        '2' => '其他外部链接',
        '3' => '站内来源',
    ],

    //指标分类
    'quota' => [
        'QUOTA_TYPE_FROM_TRAFFIC'=>'流量类',
        'QUOTA_TYPE_FROM_USER'=>'用户类',
        'QUOTA_TYPE_FROM_CUSTOMER'=>'客户类',
        'QUOTA_TYPE_FROM_NCUSTOMER'=>'新客户类',
        'QUOTA_TYPE_FROM_OCUSTOMER'=>'老客户类',
        'QUOTA_TYPE_FROM_CART'=>'购物车类',
        'QUOTA_TYPE_FROM_ORDER'=>'下单类',
        'QUOTA_TYPE_FROM_PAY'=>'支付类',
        'QUOTA_TYPE_FROM_TRADE'=>'交易类',
        'QUOTA_TYPE_FROM_PRODUCT_TOTAL'=>'产品总数指标',
        'QUOTA_TYPE_FROM_BRAND_STOCK'=>'品牌存量',
        'QUOTA_TYPE_FROM_SHELVES'=>'上架',
        'QUOTA_TYPE_FROM_PRODUCT_ABNORMAL'=>'异常产品',
        'QUOTA_TYPE_FROM_GRAPHIC_READING'=>'图文阅读类',
        'QUOTA_TYPE_FROM_COMMENT'=>'评论类',
        'QUOTA_TYPE_FROM_COMPLAINT'=>'投诉率',
        'QUOTA_TYPE_FROM_APP'=>'APP',
    ],

    'event_name' => [
        'EVENT_TYPE_SESSION_BEGIN' => '会话开始',
        //'EVENT_TYPE_SESSION_END' => '会话结束',
        //'EVENT_TYPE_CURRENCY' => '通用',
        'EVENT_TYPE_PRODUCT_BUY' => '产品购买',
        'EVENT_TYPE_PRODUCT_COLLECT'=>'产品-收藏',
        'EVENT_TYPE_PRODUCT_COMMENT'=>'产品-评论',
        'EVENT_TYPE_PRODUCT_SHARE'=>'产品-分享',
        'EVENT_TYPE_PRODUCT_HISTORY'=>'产品-浏览历史',
        'EVENT_TYPE_PRODUCT_DETAIL'=>'产品-点击进入详情',
        'EVENT_TYPE_PRODUCT_ADD_CART'=>'添加购物车',

        'EVENT_TYPE_ARTICLE_DETAIL'=>'文章-点击进入详情',
        'EVENT_TYPE_ARTICLE_COLLECT'=>'文章-收藏',
        'EVENT_TYPE_ARTICLE_COMMENT'=>'文章-评论',
        'EVENT_TYPE_ARTICLE_SHARE'=>'文章-分享',
        'EVENT_TYPE_ARTICLE_HISTORY'=>'文章-浏览历史',

        'EVENT_TYPE_LINK_DETAIL'=>'链接-点击进入详情',
        'EVENT_TYPE_LINK_COLLECT'=>'链接-收藏',
        'EVENT_TYPE_LINK_COMMENT'=>'链接-评论',
        'EVENT_TYPE_LINK_SHARE'=>'链接-分享',
        'EVENT_TYPE_LINK_HISTORY'=>'链接-浏览历史',

        'EVENT_TYPE_ALBUM_DETAIL'=>'相册-点击进入详情',
        'EVENT_TYPE_ALBUM_COLLECT'=>'相册-收藏',
        'EVENT_TYPE_ALBUM_COMMENT'=>'相册-评论',
        'EVENT_TYPE_ALBUM_SHARE'=>'相册-分享',
        'EVENT_TYPE_ALBUM_HISTORY'=>'相册-浏览历史',

        'EVENT_TYPE_FROM_COMMENT'=>'表单-评论',
        'EVENT_TYPE_FROM_SHARE'=>'表单-分享',
    ],

    'event2table' => [
        'article_cate' => 1,

    ],
		'auth_key'=>'pms1234567890',



    //用户生命周期类型
    'user_life' => [
        1 => '触发一次新用户',
        2 => '触发一次老用户',
        3 => '触发多次新用户',
        4 => '触发多次新用户',
        5 => '沉默用户',
        6 => '睡眠用户',
        7 => '流失用户',
        8 => '潜在用户',
    ],

    //拼团小程序资金来源
    'money_type' =>[
        1 => '待定',
        2 => '提现',
    ],
    //优惠券类型
    'coupon_type'=>[
    	1=>'满减券',
    	2=>'折扣券',
    	3=>'代金券'
    ],

    //法定节假日列表 md格式
    'legal_holidays' => [
    	'2017' => ['1230'],
    	'2018' => [
    		'0101','0215','0216','0217','0218','0219','0220','0221','0405','0406','0407','0429','0430','0501','0616','0617','0618',
    		'0922','0923','0924','1001','1002','1003','1004','1005','1006','1007','1230'
    	]
    ],
    //建站模板类型
    'tag_type'=> [
        '0'=>'无',
        '1'=>'基础组件',
        '2'=>'常用组件',
        '3'=>'自定义组件'
    ],

	//门店拥有的固定菜单
	'multishop_menus' =>[
			'/home/adminHome',
			'/home/product/list',
		  '/ecom/ordermgmt/list',
			'/member/list',
			'/cash/list',
			'/setting/baseSetting',
			'/ecom/ordermgmt/list',
			'/ecom/aftersalemgmt/list',
			'/setting/staffMember',
			'/setting/logisticsSetting',
	],
];
